{% extends "print_request/base_site.html" %}

{% block content %}
  <table>
    {% if latest_requests %}
        <tr class="row-label">
          <td>Name             </td>
          <td>Short Description</td>
          <td>Extension        </td>
          <td>Publication Date </td>
        <tr/>
        {% for request in latest_requests %}
          <tr>
            <td>
              <a href="{% url 'print_request:review' request.id %}">{{ request.name }}</a>
            </td>
            <td>
              {{ request.short_description }}
            </td>
            <td>
              <a href="{% url 'print_request:extension' request.extension %}">{{ request.extension }}</a>
            </td>
            <td>
              {{ request.pub_date }}
            </td>
          </tr>
        {% endfor %}
    {% else %}
      <p>No print request are available.</p>
    {% endif %}
  </table>
{% endblock %}

